<?php
namespace app\miniprogram\controller;

use app\common\controller\Base;

class Agreement extends Base
{
    protected $site = null;
    protected $process = 'Agreement';
    protected $noNeedLogin = ['*'];

    public function index() {
        $args = $this->ajax_process(function($process, $user) {
            return $process->index();
        }, null, true);
        $this->assign($args);
        return $this->view->fetch();
    }

    public function user_agreement()
    {
        $args = $this->ajax_process(function($process, $user) {
            return $process->index('user_agreement');
        }, null, true);
        $this->assign($args);
        return $this->view->fetch();
    }

    public function privacy_policy() 
    {
        $args = $this->ajax_process(function($process, $user) {
            return $process->index('privacy_policy');
        }, null, true);
        $this->assign($args);
        return $this->view->fetch();
    }

    //供应商保证承诺
    public function merchant_commitment() {
        $args = $this->ajax_process(function($process, $user) {
            return $process->index('merchant_commitment');
        }, null, true);
        $this->assign($args);
        return $this->view->fetch();
    }

}